import '@/utils/request'
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

//物资市场价

// 获取本机构及其以下机构(懒加载)
const getOrgName = params => {
    return httpGet({
        url: '/hr/org/getLazyChildrenOrg',
        params
    })
}
// 根据条件分页查询物资市场价
const getMaterialsMarketPrice = params => {
    return httpPost({
        url: '/material/marketPrice/listByEntity',
        params
    })
}
// 新增物资市场价
const AddMaterialsMarketPrice = params => {
    return httpPost({
        url: '/material/marketPrice/create',
        params
    })
}
// 修改物资市场价
const EditMaterialsMarketPrice = params => {
    return httpPost({
        url: '/material/marketPrice/update',
        params
    })
}
// 修改物资市场价记录
const EditMaterialsMarketPriceList = params => {
    return httpPost({
        url: '/material/marketPrice/updateList',
        params
    })
}
// 送市场价到总计划
const sendToMasterPlan = params => {
    return httpPost({
        url: '/material/marketPrice/sendToMasterPlan',
        params
    })
}

export {
    getOrgName,
    getMaterialsMarketPrice,
    AddMaterialsMarketPrice,
    EditMaterialsMarketPrice,
    EditMaterialsMarketPriceList,
    sendToMasterPlan
}
